package com.dd.ms.auth.pojo.resp;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Author liuxianmeng
 * @CreateTime 2025/7/9 10:38
 * @Description 登录响应（包含Token + 必要非敏感用户信息）
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(description = "登录响应（包含Token + 必要非敏感用户信息）")
public class AuthResponse {
    @ApiModelProperty("鉴权token")
    private String accessToken;
    @ApiModelProperty("刷新token")
    private String refreshToken;
    @ApiModelProperty("账户名（用户唯一标识）")
    private String account;
    @ApiModelProperty("用户头像（后端目前写死）")
    private String userAvatar;
    @ApiModelProperty("token有效时间")
    private Long expiresIn;
    @ApiModelProperty("token类型")
    private String tokenType;
}
